//导入axios工具包
import instance from '@/utils/axios.js'

//2.登录

function userLogin({
  username,
  password
}) {
  return instance({
    url: '/admin/user/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}

//导出接口
export {
  userLogin
}

//2.编辑用户信息
function editUserInfo(fd) {
  return instance({
    url: '/admin/user/edit',
    method: 'post',
    data: fd


  })
}
//导出接口
export {
  editUserInfo
}
